export function chunkArray(array: Array<any>, chunkSize: any) {
  const result = [];
  for (let i = 0; i < array.length; i += chunkSize) {
    const chunk = array.slice(i, i + chunkSize);
    result.push(chunk);
  }
  return result;
}

function initArray(count: number, value: any) {
  return Array.from(
    { length: count },
    (_, i) =>
      ({
        image:
          `file:///storage/emulated/0/Pictures/static/images/introduce/${value}/${value}_${
            i + 1
          }.png` as String,
        index: i,
      } as any)
  );
}

export const companyData = {
  home: {
    companyDescriptionFull: [
      "尔托科技有限公司创立于2020年，是一家专业从事装饰印刷相关自动化配套设备、全自动配色系统及智能数据管理系统的高科技公司，集研发、生产、销售于一体。",
      "公司拥有一支高素质的专业创新团队，配置全套专业设备，致力于推动一线的核心应用，营造高效创新体系，打造高精尖设备，响应国家环保战略发展。目前公司已获得多项国家知识产权发明专利和实用新型专利，产品属业内首创，已被国家评定为高新技术企业并通过CE认证。",
      " 尔托秉承创新智造、科技强国的经营宗旨，共建互信互惠的可持续发展生态平台。",
    ],
    poster:
      "file:///storage/emulated/0/Pictures/static/images/xuanchuanpian.png",
    videoPoster:
      "file:///storage/emulated/0/Pictures/static/images/xuanchuanpian.png",
    swiperData: [
      {
        image: "file:///storage/emulated/0/Pictures/static/images/ETO.png",
        title: "First slide",
      },
      {
        image: "file:///storage/emulated/0/Pictures/static/videos/trailer.mp4",
        title: "Second slide",
      },
    ],
  },
  CompanyProfile: [
    {
      type: "certificate",
      title: "发明专利",
      path: `/pages/index/detail`,
      poster:
        "file:///storage/emulated/0/Pictures/static/images/introduce/A-certificate_all.png",
      swiperData: [
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/certificate/certificate_1.png`, //图片的路径
          index: 0, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/certificate/certificate_2.png`, //图片的路径
          index: 1, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/certificate/certificate_3.png`, //图片的路径
          index: 2, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/certificate/certificate_4.png`, //图片的路径
          index: 3, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/certificate/certificate_5.png`, //图片的路径
          index: 4, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/certificate/certificate_6.png`, //图片的路径
          index: 5, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/certificate/certificate_7.png`, //图片的路径
          index: 6, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/certificate/certificate_8.png`, //图片的路径
          index: 7, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/certificate/certificate_9.png`, //图片的路径
          index: 8, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/certificate/certificate_10.png`, //图片的路径
          index: 9, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/certificate/certificate_11.png`, //图片的路径
          index: 10, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/certificate/certificate_12.png`, //图片的路径
          index: 11, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/certificate/certificate_13.png`, //图片的路径
          index: 12, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/certificate/certificate_14.png`, //图片的路径
          index: 13, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/certificate/certificate_15.png`, //图片的路径
          index: 14, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/certificate/certificate_16.png`, //图片的路径
          index: 15, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/certificate/certificate_17.png`, //图片的路径
          index: 16, // 元素的索引
        },
        {
          image: "file:///storage/emulated/0/Pictures/static/images/F_.png", // 自定义最后一张图片的路径
          index: 17, // 自定义最后一个元素的索引
        },
      ] as any,
    },
    {
      type: "environment",
      title: "生产环境",
      path: `/pages/index/detail`,
      poster:
        "file:///storage/emulated/0/Pictures/static/images/introduce/environment/environment_3.png",
      swiperData: [
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/environment/environment_1.png`, //图片的路径
          index: 0, //元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/environment/environment_2.png`, //图片的路径
          index: 1, //元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/environment/environment_3.png`, //图片的路径
          index: 2, //元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/environment/environment_4.png`, //图片的路径
          index: 3, //元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/environment/environment_5.png`, //图片的路径
          index: 4, //元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/environment/environment_6.png`, //图片的路径
          index: 5, //元素的索引
        },
      ],
    },
    {
      type: "mood",
      title: "办公环境",
      path: `/pages/index/detail`,
      poster:
        "file:///storage/emulated/0/Pictures/static/images/introduce/mood/mood_1.png",
      swiperData: [
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/mood/mood_1.png`, //图片的路径
          index: 0, //元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/mood/mood_2.png`, //图片的路径
          index: 1, //元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/mood/mood_3.png`, //图片的路径
          index: 2, //元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/mood/mood_4.png`, //图片的路径
          index: 3, //元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/mood/mood_5.png`, //图片的路径
          index: 4, //元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/mood/mood_6.png`, //图片的路径
          index: 5, //元素的索引
        },
      ],
    },
    {
      type: "develop",
      title: "发展历程",
      path: `/pages/index/develop`,
      poster: "file:///storage/emulated/0/Pictures/static/images/ETO1.jpg",
      videoPoster: "file:///storage/emulated/0/Pictures/static/images/ETO1.jpg",
      video: "file:///storage/emulated/0/Pictures/static/videos/develop.mp4",
      yearList: [
        {
          year: "2015年",
          text: "几位对印刷行业熟悉并热衷设计的人员，用空余时间研发版辊仓库",
        },
        { year: "2016年", text: "经过两年研究试验，第一代版辊机落地" },
        { year: "2019年", text: "第二代版辊机落地" },
        { year: "2020年", text: "经过改善优化，第三代版辊机落地" },
        { year: "2020年", text: "成立佛山市尔托机械科技有限公司" },
        { year: "2021年", text: "供墨系统发布交付" },
        { year: "2022年", text: "发明多项专利，通过欧盟CE认证" },
        {
          year: "2023年",
          text: "尔托机械科技有限公司被评定为国家高新技术企业",
        },
      ] as any,
      swiperData: [
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/develop/develop_1.png`, //图片的路径
          index: 0, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/develop/develop_2.png`, //图片的路径
          index: 1, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/develop/develop_3.png`, //图片的路径
          index: 2, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/develop/develop_4.png`, //图片的路径
          index: 3, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/develop/develop_5.png`, //图片的路径
          index: 4, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/develop/develop_6.png`, //图片的路径
          index: 5, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/develop/develop_7.png`, //图片的路径
          index: 6, // 元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/develop/develop_8.png`, //图片的路径
          index: 7, // 元素的索引
        },
      ],
    },
    {
      type: "culture",
      title: "企业文化",
      path: `/pages/index/detail`,
      poster:
        "file:///storage/emulated/0/Pictures/static/images/introduce/culture/culture_5.png",
      swiperData: [
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/culture/culture_1.png`, //图片的路径
          index: 0, //元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/culture/culture_2.png`, //图片的路径
          index: 1, //元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/culture/culture_3.png`, //图片的路径
          index: 2, //元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/culture/culture_4.png`, //图片的路径
          index: 3, //元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/culture/culture_5.png`, //图片的路径
          index: 4, //元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/culture/culture_6.png`, //图片的路径
          index: 5, //元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/culture/culture_7.png`, //图片的路径
          index: 6, //元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/culture/culture_8.png`, //图片的路径
          index: 7, //元素的索引
        },
        {
          image: `file:///storage/emulated/0/Pictures/static/images/introduce/culture/culture_9.png`, //图片的路径
          index: 8, //元素的索引
        },
      ],
    },
  ],
};
